package com.command;

public class Stereo {
    private boolean on;
    private String cd;
    private String dvd;
    private int radio;
    private int volume;

    public void on(){
        this.on = true;
    }

    public void off(){
        this.on = false;
    }

    public void setCd(String cd){
        this.cd = cd;
    }

    public void setDvd(String dvd){
        this.dvd = dvd;
    }

    public void setRadio(int radio){
        this.radio = radio;
    }

    public void setVolume(int volume){
        this.volume = volume;
    }

    @Override
    public String toString() {
        return "Stereo{" +
                "on=" + on +
                ", cd='" + cd + '\'' +
                ", dvd='" + dvd + '\'' +
                ", radio=" + radio +
                ", volume=" + volume +
                '}';
    }
}
